/*
 * @Description:
 * @Version: 1.0
 * @Autor: lzc
 * @Date: 2021-12-28 09:11:18
 * @LastEditors: lzc
 * @LastEditTime: 2021-12-29 11:08:33
 */

#ifndef __SNTP_H__
#define __SNTP_H__
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "freertos/semphr.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_attr.h"
// #include "esp_sleep.h"
// #include "nvs_flash.h"
// #include "protocol_examples_common.h"
#include "esp_sntp.h"

void sntp_Task(void *pvParameters);

typedef struct sntp_time_data
{
    char Hour[10];

    char Minute[10];

    char Second[10];

    char Year[10];

    char Month[10];

    char Date[10];

    char week[10];

} SNTP_time_data_t;

#endif
